package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-3-16.
 */
@Data
@Table(name = "device_bom")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DeviceBom implements Serializable {

    @Transient
    private static final long serialVersionUID = 8209427174688340542L;

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long deviceId;
    private Long parentId;
    private String createBy;
    private String updateBy;
    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

    @Transient
    private Device device;

}
